#pragma once
#include "AmericanSocket.h"
#include "ChineseSocket.h"
#include <algorithm>

class Adapter:public ChineseSocket, public AmericanSocket
{
private:
	 ChineseSocket* ChineseSockets = nullptr;
	 AmericanSocket* AmericanSockets = nullptr;
public:
	Adapter(ChineseSocket* chinese):ChineseSockets(chinese){}
	Adapter( AmericanSocket* American) :AmericanSockets(American) {}

	std::string AmericanInput()const override;
	std::string ChineseInput()const override;
};